package com.santiao.fuel.ui.adapter

import android.app.Activity
import com.santiao.fuel.R
import com.santiao.fuel.bean.RYChargeListBean
import com.santiao.fuel.ui.adapter.base.BaseAdapter
import com.santiao.fuel.ui.adapter.base.BaseViewHolder

class ChargeListAdapter(private var activity: Activity,id: Int, private var myData:ArrayList<RYChargeListBean>) : BaseAdapter<RYChargeListBean>(activity, id, myData) {

    val TAG = "ChargeListAdapter"
    override fun bindView(holder: BaseViewHolder, data: RYChargeListBean) {
        holder.setTextResource(R.id.charge_title, data.title)
        holder.setImageResource(R.id.charge_icon, data.iconId)

    }




}